import request from '@/utils/request'
/**
 * 获取宿舍财产信息
 * @returns 
 */
export function getdormPropertyInfoApi(query) {
    return request({
        url: '/dormManagement/dormProperty',
        method: 'get',
        params: query
    })
}
/**
 * 获取宿舍列表
 */
export function getDormApi() {
    return request({
        url: '/dormManagement/dormProperty/getDorms',
        method: 'get'
    })
}
/**
 * 新增宿舍财产
 */
export function addDormPropertyApi(form) {
    return request({
        url: '/dormManagement/dormProperty',
        method: 'post',
        data: form
    })
}
/**
 * 批量删除宿舍财产
 */
export function deleteDormPropertyApi(val) {
    return request({
        url: '/dormManagement/dormProperty',
        method: 'delete',
        params: {
            "ids": val
        }
    })
}
/**
 * 更新宿舍财产信息
 * @param {*} form 
 * @returns 
 */
export function updateDormPropertyApi(form) {
    return request({
        url: '/dormManagement/dormProperty',
        method: 'put',
        data: form
    })
}
/**
 * 获取水电费信息
 * @param {*} query 
 * @returns 
 */
export function getWaterElectricityInfoApi(query) {
    return request({
        url: '/dormManagement/waterElectricity',
        method: 'get',
        params: query
    })
}
export function getStudentDormInfoApi(query) {
    return request({
        url: '/dormManagement/studentDorm',
        method: 'get',
        params: query
    })
}
export function deleteStudentDormApi(val) {
    return request({
        url: '/dormManagement/studentDorm',
        method: 'delete',
        params: {
            "ids": val
        }
    })
}